package com.design.pattern.singleton;

public class Singleton4 {

    //内部类
    private static class SingletonHolder{

        private static final Singleton4 INSTANCE = new Singleton4();

    }
    private Singleton4(){

    }
    public static final Singleton4 getInstance(){

        return  SingletonHolder.INSTANCE;

    }

}
